#ifndef SIGINT_HANDLER_H_
#define SIGINT_HANDLER_H_

#include <signal.h>
#include <assert.h>
#include <iostream>

#include "EventHandler.h"

class SIGTERM_Handler : public EventHandler {

	private:
		static sig_atomic_t gracefulQuit;

	public:

		SIGTERM_Handler () {}

		virtual int handleSignal ( int signum );

		/* devuelve 1 si hay que salir */
		static sig_atomic_t getGracefulQuit () {
			return gracefulQuit;
		}

};

#endif /* SIGINT_HANDLER_H_ */
